package com.kapukapu.user.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author sivan
 * @since 2020-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
public class SysUser implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 系统用户 ID
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 用户名
	 */
	@TableField("name")
	private String name;

	/**
	 * 登录名
	 */
	@TableField("user_name")
	private String userName;

	/**
	 * 密码
	 */
	@TableField("password")
	private String password;

	/**
	 * 手机号码
	 */
	@TableField("telephone")
	private String telephone;

	/**
	 * 性别
	 */
	@TableField("sex")
	private Integer sex;

	/**
	 * 邮箱
	 */
	@TableField("email")
	private String email;

	/**
	 * 状态码
	 */
	@TableField("status")
	private Integer status;

	/**
	 * 部门 ID
	 */
	@TableField("dept_id")
	private Long deptId;

	/**
	 * 排序
	 */
	@TableField("pos")
	private Integer pos;

	/**
	 * 是否删除
	 */
	@TableField("deleted")
	private Boolean deleted;

	/**
	 * 修改人ID
	 */
	@TableField("modify_user")
	private Long modifyUser;

	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private LocalDateTime createTime;

	/**
	 * 创建人ID
	 */
	@TableField("create_user")
	private Long createUser;

	/**
	 * 修改时间
	 */
	@TableField("modify_time")
	private LocalDateTime modifyTime;

	public static final String ID = "id";

	public static final String NAME = "name";

	public static final String USER_NAME = "user_name";

	public static final String PASSWORD = "password";

	public static final String TELEPHONE = "telephone";

	public static final String SEX = "sex";

	public static final String EMAIL = "email";

	public static final String STATUS = "status";

	public static final String DEPT_ID = "dept_id";

	public static final String POS = "pos";

	public static final String DELETED = "deleted";

	public static final String MODIFY_USER = "modify_user";

	public static final String CREATE_TIME = "create_time";

	public static final String CREATE_USER = "create_user";

	public static final String MODIFY_TIME = "modify_time";

}
